
import Game from './index.vue';
import Icon from './icon.svg?component';

export default {
  config: {
    name: 'Game',
    ref: Game,
    position: 'FOOTER_TABBAR',
    type: 'PAGE',
    sort: 1,
    icon: markRaw(Icon),
    path: '/Game',
  },
  install(app: any, options?: any) {
    console.log('注册-Game-模块', this.config)
    app.config.globalProperties[`GameRouterTree`] = {
      path: this.config.path,
      component: options.Layout,
      meta: { title: '游戏', icon: '', },
      name: 'Game',
      children: [
        {
          path: '',
          meta: { title: '游戏', keepAlive: true, icon: '' },
          name: "GameMain",
          compurl: './Game/index.vue',
          component: Game
        },
      ]
    };
    app.component(this.config.name, Game);
  }
}
